package top.zhangjianyong.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.zhangjianyong.blog.entity.po.BlogCommentLike;

/**
 * 博客评论点赞服务接口
 *
 * @author zhangjianyong
 * @since 2024/12/19
 */
public interface BlogCommentLikeService extends IService<BlogCommentLike> {

  /** 检查访客是否已点赞 */
  boolean hasLiked(Long commentId, String visitorUuid);

  /** 添加点赞 */
  boolean addLike(Long commentId, String visitorUuid, Long userId);

  /** 取消点赞 */
  boolean removeLike(Long commentId, String visitorUuid);

  /** 获取评论点赞数 */
  long getLikeCount(Long commentId);
}
